package com.lsl.domain;

import com.lsl.utils.Status;

/**程序员类
 * @author lishuailong
 * @create 2020-06-19 16:14
 */
public class Programmer extends Employee {
    /**
     * 团队中的ID
     */
    private int memberId;
    /**
     *状态
     */
    private Status status=Status.FREE;
    /**
     * 设备
     */
    private Equipment equipment;



    public Programmer(int id, String name, int age, double  salary, Equipment equipment) {
        super(id, name, age, salary);
        this.equipment = equipment;
    }

    public Programmer() {
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }
    @Override
    public String toString() {
        return getDetails() + "\t程序员\t" + status + "\t\t\t\t" + equipment.getDescription() ;
    }
}
